package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.DbUser;
import com.srit.migration.business.dao.DbUserDao;
import com.srit.migration.business.service.DbUserService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class DbUserServiceImpl implements DbUserService {
	@Autowired(required = true)
	private DbUserDao dbUserDao;

	@Override
	public void save(DbUser dbUser) {
		dbUserDao.save(dbUser);
	}

	@Override
	public void update(DbUser dbUser) {
		dbUserDao.update(dbUser);
	}

	@Override
	public DbUser getById(DbUser dbUser) {
		return (DbUser) dbUserDao.getById(dbUser);
	}

	@Override
	public void delete(DbUser dbUser) {
		dbUserDao.delete( dbUser);
	}

	@Override
	public void page(Page page) {
		dbUserDao.page( page);
	}
	
	@Override
	public void batchSave(List<DbUser> dbUserList) {
		dbUserDao.batchSave(dbUserList);

	}

	@Override
	public List list(Page page) {
		return dbUserDao.list( page);
	}

}
